package org.jeecg.controller;

import org.jeecg.service.FileService;
import org.jeecg.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/minio")
public class MinioController {
    @Autowired
    private FileService fileService;
    @PostMapping("/upload")
    public ResponseResult uploadAvatarImg(@RequestBody MultipartFile file){
        return fileService.uploadAvatarImg(file);
    }
}
